
#import <Foundation/Foundation.h>
#import "GDataXMLNode.h"

id updateObjPropertyFromXML(id object, NSString *attribute, GDataXMLElement *element, NSString *elementName);

@interface XMLHelper : NSObject

/* Optimization for version 4 */
+ (NSString *)stringValueFromElement:(GDataXMLElement *)element andName:(NSString *)name;

+ (NSArray *)elementsFromResponseData:(NSData *)data
                               atPath:(NSString *)xmlPathString
                                error:(NSError **)error;

+ (GDataXMLElement *)firtElementFromResponseData:(NSData *)data
                                          atPath:(NSString *)xmlPathString
                                           error:(NSError **)error;

@end

